import subprocess
from typing import Union

def clone_model(model_name:str, G_TOKEN: Union[None, str] = ""):
    command = f'git -c lfs.url="http://lfs-internal.gitee.com/hf-models/{model_name}.git/info/lfs" clone https://oauth2:{G_TOKEN}@gitee.com/hf-models/{model_name}.git --depth=1 --single-branch --progress --verbose /home/suno/bark_v0'
    ret, out = subprocess.getstatusoutput(command)
    print("ret:", ret)
    print("out:", out)
    return ret, out